package com.myl.web.controller;

import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.myl.service.store.CatalogService;
import com.myl.service.store.CompanyService;
import com.myl.service.store.CourseService;
import com.myl.service.store.QuestionItemService;
import com.myl.service.store.QuestionService;
import com.myl.service.store.impl.CatalogServiceImp;
import com.myl.service.store.impl.CompanyServiceImp;
import com.myl.service.store.impl.CourseServiceImp;
import com.myl.service.store.impl.QuestionItemServiceImp;
import com.myl.service.store.impl.QuestionServiceImp;
import com.myl.service.system.DeptService;
import com.myl.service.system.ModuleService;
import com.myl.service.system.RoleService;
import com.myl.service.system.UserService;
import com.myl.service.system.impl.DeptServiceImpl;
import com.myl.service.system.impl.ModuleServiceImp;
import com.myl.service.system.impl.RoleServiceImp;
import com.myl.service.system.impl.UserServiceImp;

/**
 * Servlet implementation class BaseServlet
 */
public class BaseServlet extends HttpServlet {
	protected CompanyService companyService;
	protected DeptService deptService;
	protected UserService userService;
	protected CourseService courseService;
	protected CatalogService catalogService;
	protected QuestionService questionService;
	protected QuestionItemService questionItemService;
	protected RoleService roleService;
	protected ModuleService moduleService;
	
	@Override
	public  void init(){
		companyService = new CompanyServiceImp();
		deptService = new DeptServiceImpl();
		userService = new UserServiceImp();
		courseService = new CourseServiceImp();
		catalogService = new CatalogServiceImp();
		questionService = new QuestionServiceImp();
		questionItemService = new QuestionItemServiceImp();
		roleService = new RoleServiceImp();
		moduleService = new ModuleServiceImp();
	}

	

}
